package com.aistar.line.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.security.core.parameters.P;

import java.util.List;

/**
 * @Description: java类作用描述:
 * @Author: tyg
 * @CreateDate: 2019/7/4 0004
 * @Version: 1.0
 */
public interface PicMapper {
    /**
     * 根据路线id查出图片地址
     *
     * @param id
     * @return
     */
    @Select("select lineBigPic_name from linebigpic where line_id = #{id}")
    List<String> findByLid(String id);

    /**
     * 添加图片地址
     *
     * @param pid
     * @param lid
     * @param pname
     * @return
     */
    @Insert("insert into linebigpic values(#{pid},#{pname},#{lid})")
    boolean addPic(@Param("pid") String pid, @Param("pname") String pname, @Param("lid") String lid);
}
